<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        h2 {
            text-align: center;
        }

        table {
            border-collapse: collapse;
            height: 80px;
            margin: 0 auto;
            text-align: center;
        }

        table,
        th,
        td {
            border: 1px solid black;
        }

        th {
            padding: 5px 30px;
        }
    </style>
</head>

<body>
    <h2>动漫角色</h2>

    <script>
        let name = prompt('输入角色名称')
        let jname = prompt('输入剧名名称')
        let bname = prompt('输入角色别称')
        let vlp = +prompt('输入角色年龄')
        let size = +prompt('输入播放季')
        document.write(`
       
       <table>
        <tr>
            <th>名称</th>
            <th>剧名</th>
            <th>别称</th>
            <th>地位</th>
            <th>播放季数</th>
        </tr>
        <tr>
            <td>${name}</td>
            <td>${jname}</td>
            <td>${bname}</td>
            <td>${vlp}岁</td>
            <td>已播${size}季</td>
        </tr>
    </table>
       
       
       `)
    </script>
</body>

</html>